package com.tensquare.friend.pojo;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

/**
 * tb_friend 表实体类.
 *
 * @author 宫新程
 * @since 2019/3/18 18:54
 */
@Entity
@Table(name = "tb_friend")
@IdClass(Friend.class) // 联合主键？
public class Friend implements Serializable {

  @Id private String userid;
  @Id private String friendid;
  private String islike;

  public String getUserid() {
    return userid;
  }

  public void setUserid(String userid) {
    this.userid = userid;
  }

  public String getFriendid() {
    return friendid;
  }

  public void setFriendid(String friendid) {
    this.friendid = friendid;
  }

  public String getIslike() {
    return islike;
  }

  public void setIslike(String islike) {
    this.islike = islike;
  }
}
